import 'package:demo/ui/home/dialog_page.dart';
import 'package:demo/ui/home/share_perfence_page.dart';
import 'package:fluro/fluro.dart';

import '../../routers/router_init.dart';
import 'navigator_page.dart';

class HomeRouter implements IRouterProvider {
  static String navigatorPage = "/navigator";
  static String searchPage = "/search";
  static String dialogPage = "/dialog";
  static String sharePreferencesPage = "/sharePreferences";

  @override
  void initRouter(Router router) {
    router.define(navigatorPage,
        handler: Handler(handlerFunc: (_, params) => NavigatorPage()));
    router.define(dialogPage,
        handler: Handler(handlerFunc: (_, params) => DialogPage()));
    router.define(sharePreferencesPage,
        handler: Handler(handlerFunc: (_, params) => SharedPreferencesPage()));
  }
}
